﻿<!--
  ~ Copyright (c) $today.year-Now http://www.zxpnet.com All rights reserved.
  -->

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>用户登陆</title>

    <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="${ctxPath}/assets/css/style.css">

</head>
<body>


<div class="materialContainer">
    <div class="box">
        <div class="title">登录</div>

        <form action="/login" method="POST">
            <div class="input">
                <label for="name">用户名</label>
                <input type="text" name="username" id="name" autocomplete="off" placeholder="请输入用户名"  autofocus>
                <span class="spin"></span>
            </div>
            <div class="input">
                <label for="pass">密码</label>
                <input type="password" name="password" id="pass" autocomplete="off">
                <span class="spin"></span>
            </div>
            <div class="input">
                <input type="text" name="code" id="code" placeholder="请输入验证码" autocomplete="off" style="height: 60px; display: inline-block; width:180px">
                <img src="/images/captcha?width=180&height=60&len=4&type=1" height="60" width="180" style="display: inline-block"
                     onclick="javascript:this.src=this.src+'&t='+new Date; "/>
            </div>
            <div style="float:left; width:100%; margin-top:15px; height: 60px; font-size: 24px;color: rgba(0, 0, 0, 0.8);font-weight: 300;">
                <input type="checkbox" name="remember-me" id="rememberMe" style="width:16px; height:16px;"/>
                <label for="rememberMe">记住我</label>
            </div>
            <div class="button login">
                <button type="submit">
                    <span>登录</span>
                    <i class="fa fa-check"></i>
                </button>
            </div>
        </form>
        <a href="javascript:" class="pass-forgot">忘记密码？</a>
    </div>

    <div class="box">
        <div class="title">手机验证码登录</div>

        <form action="/login/mobile" method="POST">
            <div class="input">
                <label for="phone">手机号</label>
                <input type="text" name="phone" value="13302403878" id="phone" autocomplete="off" placeholder="请输入电话号码"  autofocus>
                <span class="spin"></span>
            </div>
            <div class="input">
                <input type="text" name="smsCode" id="smsCode" placeholder="请输入验证码" autocomplete="off" style="height: 60px; display: inline-block; width:180px">
                <a href="/code/sms?phone=13302403878">发送</a>
            </div>
            <div class="button login">
                <button type="submit">
                    <span>登录</span>
                    <i class="fa fa-check"></i>
                </button>
            </div>
        </form>
        <a href="javascript:" class="pass-forgot">忘记密码？</a>
    </div>

    <div class="overbox">
        <div class="material-button alt-2">
            <span class="shape"></span>
        </div>
        <div class="title">注册</div>
        <div class="input">
            <label for="regname">用户名</label>
            <input type="text" name="regname" id="regname">
            <span class="spin"></span>
        </div>
        <div class="input">
            <label for="regpass">密码</label>
            <input type="password" name="regpass" id="regpass">
            <span class="spin"></span>
        </div>
        <div class="input">
            <label for="reregpass">确认密码</label>
            <input type="password" name="reregpass" id="reregpass">
            <span class="spin"></span>
        </div>
        <div class="button">
            <button>
                <span>注册</span>
            </button>
        </div>
    </div>

</div>

<script src="https://cdn.bootcdn.net/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="${ctxPath}/assets/js/index.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/layer/3.5.1/layer.min.js"></script>
<script>

<% if(session["msg"]!=null){ %>

layer.alert('${session["msg"]}');
<% }%>

</script>
</body>
</html>